import 'package:enterprise_v6_app/app/core/values/images.dart';
import 'package:enterprise_v6_app/app/data/entities/application/basic_information/security_all_base_page_entity.dart';
import 'package:enterprise_v6_app/router/app_pages.dart';
import 'package:get/get.dart';

///安全基础（我的任务）
class SecurityAllFundamentalsPageController extends GetxController {
  final productiveList = [
    SecurityFundamentalsBasePage(
      title: '值班打卡',
      image: AppImages.icon_every_day_quiz,
      icon: AppImages.icon_base_right_arrow,
    ),
    // SecurityFundamentalsBasePage(
    //   title: '值班排班审签',
    //   image: AppImages.icon_train_program_view_ing,
    //   icon: AppImages.icon_base_right_arrow,
    // ),
    // SecurityFundamentalsBasePage(
    //   title: '年度安全生产费用',
    //   image: AppImages.icon_annual_safety_production_expenses,
    //   icon: AppImages.icon_base_right_arrow,
    // ),
    // SecurityFundamentalsBasePage(
    //   title: '年度安全工作计划审批',
    //   image: AppImages.icon_annual_safety_work_plan_approval,
    //   icon: AppImages.icon_base_right_arrow,
    // ),
    SecurityFundamentalsBasePage(
      title: '设备检验检测台账审批',
      image: AppImages.icon_approval_equipment_inspection_testing_ledger,
      icon: AppImages.icon_base_right_arrow,
    ),
    SecurityFundamentalsBasePage(
      title: '部件管理台账审批',
      image: AppImages.icon_approval_component_management_iedger,
      icon: AppImages.icon_base_right_arrow,
    ),
    SecurityFundamentalsBasePage(
      title: '联锁摘除台账审批',
      image: AppImages.icon_approval_interlocking_removal_iedger,
      icon: AppImages.icon_base_right_arrow,
    ),
  ];

  void onClickItem(SecurityFundamentalsBasePage e) async {
    switch (e.title) {
      case '值班打卡':
        Get.toNamed(AppRoutes.securityFundamentalsPage);
        break;
      case '设备检验检测台账审批':
        Get.toNamed(AppRoutes.equipmentInspectionTestingLedgerApprovePage);
        break;
      case '部件管理台账审批':
        Get.toNamed(AppRoutes.componentManagementLedgerApprovePage);
        break;
      case '联锁摘除台账审批':
        Get.toNamed(AppRoutes.chainRemovalListApprovePage);
        break;
      default:
        break;
    }
  }
}
